<?php exit;
if(GetPostFlagEnable()){
    if(!empty($GLOBALS['PostFlagCfg']['threadorder']) && is_array($GLOBALS['PostFlagCfg']['threadorder'])){
        if(!empty($orderby)){
            if(!isset($orderby[key($GLOBALS['PostFlagCfg']['threadorder'])]))
                $orderby = array_merge($GLOBALS['PostFlagCfg']['threadorder'],$orderby);
            else
                $orderby = $orderby+$GLOBALS['PostFlagCfg']['threadorder'];
        }
        else
            $orderby = $GLOBALS['PostFlagCfg']['threadorder'];
    }
}
//后面会调用:$threadlist = thread__find($cond, $orderby, $page, $pagesize);